home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Prog / U-Z / Vaccinate / Vaccinate ReadMe next >
Encoding:
Text File  |  1992-09-05  |  2.0 KB  |  25 lines  |  [ttro/ttxt]

  1.  
  2.                                                             
  3.                                                                                                                         Vaccinate
  4.                                                                                                                                 by 
  5.                                                                                                             Patrick M. Gormley
  6.  
  7.  
  8. I have no great love for those individuals who create virus programs to wreck havoc on the work of others and I have always wanted to design a way for an application to check itself for infections prior to running.  The enclosed files will not protect all applications against all viruses but they will allow developers to add some measure of protection to their programs.  The files included are:
  9.  
  10. •virusCheck.p--This is a Think’s Pascal unit which contains the routines necessary to allow an Application to check its resources for any changes.   Before an application is compiled for the last time this unit should be included in the project and a line similar to the following added to the beginning of the mainline:                      
  11.            if not(ApplicationCanRun) then 
  12.                           begin
  13.                              {Do any Clean-up here}
  14.                              Halt;
  15.                            end;
  16.  
  17. The next time your application is run it will check its resource fork for a resource which contains a list of resource types and counts.  The default is a resource type of “Vchk” with an ID of 128.  This resource must be created and added to your application’s resource fork.   The virusCheck.p unit also needs ALRT and DITL resources both with an ID of 6000 to display the necessary dialogs if a virus is detected.  A sample resource file is included for your inspection.  Alternatively you can use the Vaccinate Program to add all of these resources automatically.  
  18.  
  19. •VirusChk.rscs--This is a sample resource file.
  20.  
  21. •Vaccinate--This program will add all of the necessary resources to your application so that it can do a self check whenever the application runs.  
  22.  
  23. These files are free.  I ask only that you keep them together along with this Read Me file.  
  24.  
  25. Comments are welcome.  E-mail address is PatrickG21 (America Online) or 4247 Vernor Rd. Attica MI 48412.